<?php

class JS_ForNode extends JS_Node {
	
	public function __construct() {
		parent::__construct();
	}

	public function &getCondition() {
		return $this->getChild(0);
	}
	
	public function &getBody() {
		return $this->getChild(1);
	}
	
	public function interpret() {
		
	}
	
	public function __toString() {
		//_d($this->getCondition());
		return 'for (' . $this->getCondition()->__toString() . ") {\n" . implode('', $this->getBody()) . "\n}";
	}
}

?>